home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / kbd / repeat / set_kbd_repeat-1 next >
Encoding:
Internet Message Format  |  2008-03-13  |  1.1 KB

  1. From: johnsonm@stolaf.edu (Michael K. Johnson)
  2. Subject: changing keyboard repeat rate.
  3.  
  4. OK, I have gotten several requests for info on how to change the
  5. keyboard repeat rate, so here goes.  Note:  I can't just give diffs,
  6. because there are lots of options, and for heaven's sake it's only
  7. three lines of code.
  8.  
  9. In boot/setup.S, there are the lines:
  10.  
  11. ! set the keyboard repeat rate to the max
  12.  
  13.     mov    ax,#0x0305
  14.     mov    bx,0x0000
  15.     int    0x16
  16.  
  17. If you don't want to change the repeat rate at all, just comment out
  18. these lines by prefacing them with !'s.  If you want something in the
  19. middle, change the
  20.     mov    bx,0x0000
  21. to    mov    bx,0x????
  22. where ???? is determined by (from Ralf Brown's interrupt list)
  23. bh = delay value (0x00 = 250 ms to 0x03 = 1000 ms (one second))
  24.     this is the delay before the repeat starts happening
  25. bl = repeat rate (0x00 = 30/sec to 0x0c = 10/sec [default] to 0x1f = 2/sec)
  26.  
  27. I use    mov    bx,0x0006
  28. to delay 1/4 sec, then repeat at what I think is a comfortable rate.
  29. I am too lazy to calculate the exact speed -- maybe 20/sec? ;-)
  30.  
  31. Hope this helps people.
  32.  
  33. michaelkjohnson
  34. johnsonm@stolaf.edu
  35.